package com.inforich.app.api.dto;

import com.inforich.common.mybatis.Location;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @description: some desc
 * @author: HJM
 * @date: 2022/10/31
 */
@Data
@EqualsAndHashCode()
public class TransportCompanyDTO {

  private String id;
  @NotBlank(message = "清运公司名称不能为空")
  @Size(max = 255)
  private String name;
  @NotBlank(message = "公司地址不能为空")
  @Size(max = 200)
  private String address;
  @NotBlank(message = "所在地区不能为空")
  @Size(max = 200)
  private String areaId;
  @Size(max = 255)
  @NotBlank(message = "统一社会信用代码不能为空")
  private String socialCreditCode;
  @Size(max = 255)
  @NotBlank(message = "营业执照不能为空")
  private String imageId;
  @Size(min = 1, max = 20, message = "联系人姓名长度在1-20之间")
  @NotBlank(message = "联系人姓名不能为空")
  private String contactName;
  @Size(max = 11)
  @NotBlank(message = "联系电话不能为空")
  private String contactPhone;
  @NotNull(message = "坐标不能为空")
  private Location location;
}
